<?php
//session_start();//启动session_start
$s=$_POST['s'];
$min=$_POST['min'];
$max=$_POST['max'];
$cz=$_POST['c'];
if ($s==='yaosj'){
    $cz=rand(1,100);
    $s='busj';
}
if ($_POST['te']==$cz)
{
    $s='yaosj';
    echo json_encode(array('gx'=>"恭喜猜中了",'s'=>$s,'min'=>1,'max'=>100));
    exit;
}
if ($_POST['te']<$cz)
{
    $min=$_POST['te'];
}
if ($_POST['te']>$cz)
{
    $max=$_POST['te'];
}
echo json_encode(array('min'=>$min,'max'=>$max,'c'=>$cz,'s'=>$s));


